<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<span style="visibility: hidden;">loginPageResponse</span>
<h2>Welcome. Login to Nexus</h2>
<div class="border_img_empty_div"></div>
<c:if test="${not empty param['error']}">
	<div class='error'>
		<img style="float: left;" alt="error" src="/static/images/ERROR.gif" /> <span >
		Your login attempt was not successful, try again.<br /> Caused :
		${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}</span>
	</div>
</c:if>
<div id="login_div_container">
	<form name='f' action="javascript:void(0)"
		method='POST' dojoType="dijit.form.Form" id="loginForm"
		data-dojo-id="loginForm">
		<table>
			<tr>
				<td>User:</td>
				<td><input type='text' name='j_username' value='' required="true"
					placeholder="user name" dojoType="dijit.form.ValidationTextBox"
					missingMessage="Please Enter userName"></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type='password' name='j_password' required="true"
					dojoType="dijit.form.ValidationTextBox"
					missingMessage="Please Enter password" /> <br>
					<a href="javascript:void(0);" id="forgotPasswordLink">Forgot Password?</a>
					</td>
			</tr>
			<tr>
				<td colspan='2'>
						<div class="questionnaire_submit_button">
							<button style="margin-left: 30px; margin-top: 20px;"  type="submit" name="submit" value="submit" id="loginSubmitButton" class="ui-action-tag action-primary"><span class="ui-action"><span class="ui-action-content">Sign In</span></span></button>
								<span class="sub_message">By clicking Sign In you agree to our <a href="javascript:void(0);">terms of use</a> and <a href="javascript:void(0);">privacy policy</a> </span>
						</div>
				</td>
			</tr>
			<tr>
				
			</tr>
		</table>
	</form>
</div>